package com.cx.service.impl;

import com.cx.mapper.UserInfoMapper;
import com.cx.pojo.User;
import com.cx.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description GroupOneproject-IntelliJ IDEA
 * @Author Pyc
 * @Date 2020/5/12 18:36
 * @Version 1.0
 */

@Service
public class UserInfoServiceImpl implements UserInfoService {

    @Autowired
    UserInfoMapper userInfoMapper;

    @Override
    public User getUserBaseInfo(int id) {

        User user = userInfoMapper.selectUser(id);


        return user;
    }

    @Override
    public int saveUserBaseInfo(User user) {
        int i = userInfoMapper.updateUser(user);
        return i;
    }

}
